﻿using ProductionManage.Models.DataModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using wangyaxin.Zhangduo.WorkShops.Dto;

namespace wangyaxin.Zhangduo.WorkShops
{
    public interface IWorkShopAppService:IApplicationService
    {
        /// <summary>
        /// 显示车间信息
        /// </summary>
        /// <param name="WorkShopCode">编号</param>
        /// <param name="WorkShopName">名称</param>
        /// <returns>返回车间</returns>
        Task<string> GetWorkShoppService(string WorkShopCode,string WorkShopName);
        /// <summary>
        /// 添加车间信息
        /// </summary>
        /// <param name="model">实体</param>
        /// <returns>返回受影响行数</returns>
        Task<string> AddWorkShoppService(WorkShop model);
        /// <summary>
        /// 删除车间信息
        /// </summary>
        /// <param name="id">车间id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DelWorkShopp(int  id);
        /// <summary>
        /// 获取单条车间信息
        /// </summary>
        /// <param name="id">车间id</param>
        /// <returns>返回单条车间信息</returns>
        Task<WorkShop> getWorkShopBy(int id);
        /// <summary>
        /// 修改车间信息
        /// </summary>
        /// <param name="model">实体</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdWorkShopBy(UpdateWorkShopDto model);
    }
}
